//
//  TEBook.m
//  TintExample
//
//  Created by Kevin Wu on 2/27/12.
//  Copyright (c) 2012 Telligenty. All rights reserved.
//

#import "TEBook.h"

@implementation TEBook

@synthesize bookId = _bookId;
@synthesize bookName = _bookName;
@synthesize bookAuthor = _bookAuthor;

- (void)dealloc {
    TTRelease(_bookId);
    TTRelease(_bookName);
    TTRelease(_bookAuthor);
    [super dealloc];
}


+ (NSDictionary *)propertyMap {
    return [NSDictionary dictionaryWithObjectsAndKeys:
            @"bookId", @"id", 
            @"bookName", @"name", 
            @"bookAuthor", @"author", nil];
}

- (NSString *)description {
    return [NSString stringWithFormat:@"%@[id=%@ name=%@ author=%@]", NSStringFromClass([self class]), _bookId, _bookName, _bookAuthor];
}

@end
